package com.online.robot.wechat.builder;

import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutTextMessage;

public class TextBuilder extends AbstractBuilder {

    @Override
    public WxMpXmlOutMessage build(Object obj, WxMpXmlMessage wxMessage) {
        return WxMpXmlOutTextMessage.TEXT().content(obj.toString()).fromUser(wxMessage.getToUser())
                .toUser(wxMessage.getFromUser()).build();
    }

}